package day03;

public class OperDemo {
    public static void main(String[] args) {





        int num = 6;
        int a1 = num>6?6:-6;
        System.out.println(a1);//-6

        int b1 = 66, b2 = 77;
        int max = b1>b2?b1:b2;
        System.out.println(max);//77



/*
        System.out.println(6+66+""+666);//72666
        System.out.println(""+6+66+666);//666666
        System.out.println(6+66+666+"");//738


 */
        /*
        int age = 24;
        System.out.println("age=");//age=
        System.out.println(age);//24
        System.out.println("age="+24);//age=24
        System.out.println("我今年"+age+"岁了");//我今年24岁了

        String name = "Ly";
        System.out.println("大家好,我叫"+name);//大家好,我叫Ly
        System.out.println("大家好,我叫"+name+",我今年"+age+"岁了");//大家好,我叫Ly,我今年24岁了
        String like = "美女";
        System.out.println("大家好,我叫"+name+",我今年"+age+"岁了,喜欢"+like);


         */











        /*
        int a = 6;
        a += 10;
        System.out.println(a);//16
        a *= 2;
        System.out.println(a);//32
        a /= 6;
        System.out.println(a);//5

        short b = 7;
        b += 10;
        System.out.println(b);//17
        //b = b+10;//编译错误,需要强转改为 b = (short)(b+10);
        b *= 2;
        System.out.println(b);//34
        b /= 3;
        System.out.println(b);//11
        b %= 2;
        System.out.println(b);//1



         */








        /*
        int a = 6, b = 16,c = 8;
        System.out.println(b>=a || b<c);//true
        System.out.println(b<=c || b>a);//true
        System.out.println(b!=c || b>a);//true
        System.out.println(a==b || b<a);//false

        int age = 50;
        System.out.println(age<0 || age >999);//false

        boolean b2 = !(a<b);
        System.out.println(b2);//false
        System.out.println(!(a>b));//true


         */


















        /*
        boolean a1 = b>=a && b<c;
        System.out.println(a1);//false
        System.out.println(b<=c && b>a);//false
        System.out.println(a==b && b<a);//false
        System.out.println(b!=c && b>a);//true

        int age = 24;
        System.out.println(age>=18 && age<=35);//true
        int min = 120;
        System.out.println(min>=60 && min <=160);//true
         */


















        /*
        int a = 66, b = 26 , c = 69;
        boolean d = c>b;
        System.out.println(d);//true
        System.out.println(a<b);//false
        System.out.println(a>c);//false
        System.out.println(b<=a);//true
        System.out.println(a%2>b);//false
        System.out.println(a+b>c);//true
        System.out.println(a++>c);//false
        System.out.println(++a>c);//false
        System.out.println(a++>=c);//false
        System.out.println(a>=c);//true
         */




















        /*
        int a = 45, b = 60;
        int c = --a;
        int d = b--;
        System.out.println(a);//44
        System.out.println(b);//59
        System.out.println(c);//44
        System.out.println(d);//60
        System.out.println(b--);//59
        System.out.println(--b);//5
         */






        /*
        int a = 10, b = 20;
        a++;
        b++;
        System.out.println(a);
        System.out.println(b);



        int a = 10, b = 6;
        int c = a++;
        int d = ++b;
        System.out.println(a);//11
        System.out.println(b);//7
        System.out.println(c);//10
        System.out.println(d);//7
         */



    }
}
